// 引入公共样式
require("./sass/index.scss")
import { getCookie } from "@u/cookie_utils"
// 引入字体图标
require("./fonts/iconfont.css")

async function getComponent() {
    await import(/* webpackChunkName:"App" */'./js/App')
}

const token = getCookie("token")

if (!token) {
    alert("您当前未登录")
    window.location.href = './login.html'
}
localStorage.setItem('token', token)
getComponent()






